﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hello_World
{
    class KnowledgeCollector
    {
        List<IKnowledge> klist = new List<IKnowledge>();
        
        public void showKnowledge()
        {
            int i;
            Console.WriteLine("---------------------------");
            for (i = 0; i < klist.Count; i++)
            {
                klist[i].DoWhatYouCan();
                Console.WriteLine("");
                Console.WriteLine("---------------------------");
            }
        }
        public void addKnowledge(IKnowledge k)
        {
            klist.Add(k);
        }
    }
}
